<?php
class Pageley_Query_Condition_Contains extends Pageley_Query_Condition_Single {
	
	public function __construct($propertyName, $value) {
		parent::__construct($propertyName, $value);
	}
	
	public function matches($entity) {
		return Pageley_Util_String::contains($entity->get($this->getPropertyName()), $this->getValue());
	}
	
	public function getOperator() {
		return "contains";
	}
}